<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>调用支付接口</title>
</head>
<body>

    <form action="https://qyfapi.95epay.com/api/api/page/registerPage" method="post" id="toPay">
        merNo:<input type="text" name="merNo" value="0001181" /><br>
        signType:<input type="text" name="signType" value="CFCA" /><br>
        version:<input type="text" name="version" value="1.1" /><br>
        notifyUrl:<input type="text" name="notifyUrl" value="http://zevi.free.idcfengye.com/pay/back" /><br>
        timestamp:<input type="text" name="timestamp" value="" /><br>
        sign:<input type="text" name="sign" value="" /><br>
        apiContent:<input type="text" name="apiContent" value="" /><br>
        <input type="submit" value="submit" id="submit" />
    </form>

<!--
    <p th:text="${payChannels}">
    </p>
    <p th:text="${payStr}">
    </p>
-->
    <script>
        /*
        function onBridgeReady(){
            var payStr='[[${payStr}]]';
            payStr=payStr.split("&quot;").join('"');
            var payJson=eval('('+payStr+')');
            var backStatus;
            WeixinJSBridge.invoke(
                'getBrandWCPayRequest',payJson,
                function(res){
                    alert(JSON.stringify(res))
                    if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                        backStatus="ok";
                        alert("ok");
                    }else if (res.err_msg == "get_brand_wcpay_request:cancel") {
                        alert("cancel");
                        backStatus="cancel";
                    }else{
                        alert("fail");
                        backStatus="fail";
                    }
                   // window.location.href=ReturnURL
                }
            );
        }
        if (typeof WeixinJSBridge == "undefined"){
            alert("undefained");
            if( document.addEventListener ){
                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
            }else if (document.attachEvent){
                document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
            }
        }else{
            onBridgeReady();
        }
*/
    </script>
</body>
</html>